package com.ruoyi.system.api;


import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.Partnerinfo;
import com.ruoyi.system.api.factory.RemotePartnerinfoFallbackFactory;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 合作单位服务
 * **/
@FeignClient(contextId = "remotePartnerinfoService", value = ServiceNameConstants.PEOPLEGROUP_SERVICE, fallbackFactory = RemotePartnerinfoFallbackFactory.class)
public interface RemotePartnerinfoService {

    @GetMapping(value = "/partnerinfo/partnerinfo/{partnerId}")
    public R<Partnerinfo> getInfo1(@PathVariable("partnerId") Long partnerId);

}
